@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content" style="padding: 0;">
        <div style="display: none">
            <input type="hidden" id="checkoutMethodValue" value="">
            <input type="hidden" id="fieldTcValue" value="">
            <input type="hidden" id="sttleAccountsTime" value="${sttleAccountsTime}">
            <input type="hidden" id="reach" value="">
            <input type="hidden" id="naturalDaySearch" value="1">
            <input type="hidden" id="timeValue" value="1" >
            <input type="hidden" id="menuName" value="结账退款-储值明细2">
        </div>
        <div class="numStatistics">
            <div><div onclick="cardDetails.today()"><span>今日</span></div></div>
            <div onclick="cardDetails.yesterday()"><span>昨日</span></div>
            <div onclick="cardDetails.thisWeek()"><span>本周</span></div>
            <div onclick="cardDetails.thisMonth()"><span>本月</span></div>
            <div>总储值<span id="sumMoney">(0)元</span></div>
            <div onclick="displayHiding('cardDetailTable')" id="zoom">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
                <span>条件展开</span>
            </div>
        </div>
        <div class="divFlex" style="display: none">
            <div class="flex_one">
                <div>TC</div>
                <div>客户状态</div>
            </div>
            <div class="flex_two">
                <div>
                    <select id="fieldTc" name="fieldTc" onchange="cardDetails.search()">
                        <option value="">请选择</option>
                        @for(str in tcList){
                        <option value="${str.tcName}">${str.tcName}</option>
                        @}
                    </select>
                </div>
                <div>
                    <select id="customerStatus" name="customerStatus"
                            onchange="cardDetails.search()">
                        <option value="">全部</option>
                        <option value="新客首次">新客首次</option>
                        <option value="新客多次">新客多次</option>
                        <option value="复诊">复诊</option>
                        <option value="老客">老客</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="timeButton">
            <div class="timeBox" >
                <div>
                    <span>操作时间</span>
                    <input type="text" autocomplete="off" id="startTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                    <span>-</span>
                    <input type="text" autocomplete="off" id="endTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                </div>
                <div>
                    <button type="button" class="btn actionClick" onclick="cardDetails.naturalDaySearch()">自然时间</button>
                    <button type="button" class="btn" onclick="cardDetails.sttleAccountsSearch()">扎帐时间</button>
                </div>
            </div>
            <div class="buttonBox">
                <div>
                    <button type="button" class="btn" onclick="cardDetails.resetSearch()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>重置</span></button>
                    @if(shiro.hasPermission("/recharge/export")){
                    <!--<button type="button" class="btn" onclick="$('#cardDetailTable').tableExport({ type: 'excel', escape: 'false' })">-->
                        <!--<img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>导出</span></button>-->
                    <button type="button" class="btn" onclick="cardDetails.cardDetailExportTwo()"><span>导出</span></button>
                    @}
                </div>
            </div>
        </div>
        <div class="tableBox">
            <#table id="cardDetailsTable"/>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/balance/cardDetails.js?v=20200628"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/doctorTcSearchContents.js?v=20200628"></script>
@}